package com.dc.datacollect.service;

import com.dc.datacollect.dto.input.CreateGroupItemInput;
import com.dc.datacollect.dto.input.RenameGroupInput;
import com.dc.datacollect.dto.output.FindGroupItemOutput;
import com.dc.datacollect.entity.GroupItem;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author zhuangjie
 * @description 针对表【group_item(收集组)】的数据库操作Service
 * @createDate 2023-06-20 20:32:16
 */
public interface GroupItemService extends IService<GroupItem> {

    String createGroupItem(CreateGroupItemInput groupItemInput) throws Exception;

    boolean removeGroupsById(Long groupItemId);

    String genInviteCode(Long id);

    String parentInviteCode(String code);

    FindGroupItemOutput find(String code);

    Boolean joinGroup(Long groupItemId) throws Exception;

    Boolean rename(RenameGroupInput renameGroupInput) throws Exception;
}
